package com.xxwy.ddu.cms.authonrize.service.impl;

import com.xxwy.ddu.cms.authonrize.entity.MenuButton;
import com.xxwy.ddu.cms.authonrize.mapper.MenuButtonMapper;
import com.xxwy.ddu.cms.authonrize.service.IMenuButtonService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author xxwy
 * @since 2018-09-10
 */
@Service
public class MenuButtonServiceImpl extends ServiceImpl<MenuButtonMapper, MenuButton> implements IMenuButtonService {

    @Autowired
    MenuButtonMapper menuButtonMapper;

    @Override
    public List<MenuButton> getUserButton(String username,int mdId){
        List<MenuButton> menuButtons = menuButtonMapper.selectUserButton(username, mdId);
        return menuButtons;
    }
}
